const path = require('path');
const VueLoaderPlugin = require('vue-loader/lib/plugin');

module.exports = {
    mode: 'development',
    // development或者production
    entry: path.join(__dirname, './src/index.js'),
    output: {
        path: path.join(__dirname, './dist'),
        filename: 'bundle.js'
    },
    // 手动配置入口和出口
    plugin: [new VueLoaderPlugin()]

};
module: {
    rules: [
        { test: /\.vue$/, use: 'vue-loader' }
    ]
}